package com.example.bili.dao;

import com.example.bili.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;

import java.util.Date;
import java.util.List;

/**
 * (User)表数据库访问层
 *
 * @author makejava
 * @since 2025-02-17 08:49:48
 */
public interface UserDao {

    User login(@Param("uPhone")String uPhone,@Param("uPwd")String uPwd);

    User queryById(String uPhone);


    List<User> foover(String uPhone);
    List<User> fooover(Integer feid);



    int upUser(User user);


    List<User> getAllUsers(@Param("id") Integer id,@Param("uName")String uName);

    List<User> getAllFUsers(Integer id);

    int deleteAllUsers(Integer id);

    List<User> fover(String uPhone);

    List<User> foverr(Integer feid);

    List<User> fovere(String uPhone);


    User getUser(Integer id);

    int upDateUser(@Param("id") Integer id);


    int insertUser(User user);


    //    我的关注
    List<User> listUser(int id);
    //    根据关注的用户查询用户信息
    List<User> listUserZi(int id,@Param("start")int start,
                          @Param("pageSize")int pageSize);

}

